<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html{
            font: 14px SimSun,\5B8B\4F53,serif;
            width: 100%;
            height: 100%;
        }
        body{
            line-height: 24px;
            /*height: 100%;*/
            background-color: #faeeee;
            width: 100%;
            /*overflow: hidden;*/
        }
        .fire{
            background-color: #faeeee;
        }
        .satu{
            background-color: #1cd5af;
        }
        .wind{
            background-color: #1fba65;
        }
        .water{
            background-color: #495fab;
        }
        a{
            text-decoration: none;
        }
        img{
            border: none;
            width: 100%;
        }
        li{
            list-style: none;
        }
        .wrapper{
            max-width: 768px;
            width: 23rem;
            height: 32.71rem;
            margin: 1.5rem auto;
            overflow: hidden;
            display: block;
            vertical-align: middle;
            position: relative;
        }

        .from span{
            font-size: 1.29rem;
        }
        .footer{
            position: absolute;
            left: 0;
            right: 0;
            width: 100%;
            top: 34.14rem;
            height: 9rem;
            overflow: hidden;
        }
        .touch{
            overflow: hidden;
            color: #ffffff;
            font-size: 1.07rem;
            text-align: center;
            padding-top: 0.6rem;
        }
        .touch .line{
            width: 0.79rem;
            height: 0.07rem;
            display: inline-block;
            background: #ffffff;
            margin: 0 1rem 0.25rem;
        }
        .composite{
            width: 11.57rem;
            height: 3.36rem;
            line-height: 3.36rem;
            display: block;
            border: 1px solid #ffffff;
            border-radius:0.43rem;
            text-align: center;
            margin: 0.5rem auto 0;
            color: #ffffff;
            font-size: 1.21rem;
            user-select: none;
        }
        .copyright{
            text-align: center;
            font-size: 0.93rem;
            margin: 0.5rem 0 0;
            color: #ffffff;
        }
        .fire .from_to{
            color: #3c63bf;
        }
        .fire .touch{
            color: #ff8890;
        }
        .fire .touch .line{
            background: #ff8890;
        }
        .fire .composite{
            border-color: #ff8890;
            color: #ff8890;
        }
        .fire .composite:active{
            background: #fbe5e5;
        }
        .fire .copyright{
            color: #ff8890;
        }


        .fire .footer{
            background-color: #faeeee;
        }
        .satu .footer{
            background-color: #1cd5af;
        }
        .wind .footer{
            background-color: #1fba65;
        }
        .water .footer{
            background-color: #495fab;
        }

        .satu .from_to{
            color: #2a64b7;
        }
        .satu .touch{
            color: #ffffff;
        }
        .satu .touch .line{
            background: #ffffff;
        }
        .satu .composite{
            border-color: #ffffff;
            color: #ffffff;
        }
        .satu .composite:active{
            background: #0ccea6;
        }
        .satu .copyright{
            color: #ffffff;
        }

        .wind .from_to{
            color: #23b565;
        }
        .wind .touch{
            color: #ffffff;
        }
        .wind .touch .line{
            background: #ffffff;
        }
        .wind .composite{
            border-color: #ffffff;
            color: #ffffff;
        }
        .wind .composite:active{
            background: #10a955;
        }
        .wind .copyright{
            color: #ffffff;
        }

        .water .from_to{
            color: #51f2d5;
        }
        .water .touch{
            color: #ffffff;
        }
        .water .touch .line{
            background: #ffffff;
        }
        .water .composite{
            border-color: #ffffff;
            color: #ffffff;
        }
        .water .composite:active{
            background: #3850a3;
        }
        .water .copyright{
            color: #ffffff;
        }

        /*iphone 5*/
        @media only screen and (width: 320px) and (height: 504px){
            html{
                font-size: 12px;
            }
        }
        /*iphone 7Plus*/
        @media only screen and (width: 414px) and (height: 672px){
            html{
                font-size: 16px;
            }
            .wrapper{
                margin: 2.35rem auto;
            }
        }
        /*iphone x*/
        @media only screen and (width: 375px) and (height: 724px){
            html {
                font-size: 14px;
            }
            .wrapper{
                /*margin: 7.35rem auto;*/
                height: 40rem;
            }
            .content{
                height:37.96rem;
            }
            .index_img{
                margin-top: 6rem;
            }
            .button{
                margin-top: 2rem;
                position: relative;
                top: 2rem;
            }
        }
        @media only screen and (width: 414px){
            .footer{
                top: 37.75rem;
            }
        }
        @media only screen and (width: 360px){
            .footer{
                top: 33rem;
            }
        }
    </style>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?11869969a3b6834ebb1d5b9f3d9c7a5f";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>

<body class="{if $data.sign_id%4 == 1}fire{elseif $data.sign_id%4 == 2}satu{elseif $data.sign_id%4 == 3}wind{elseif $data.sign_id%4 == 0}water{/if}">
<img src="/activity/valentine_img?name1={$data.name1}&name2={$data.name2}&sign={$data.sign}" alt="">
<div class="footer">
    <p class="touch"><i class="line"></i>长按保存图片<i class="line"></i></p>
    <a href="/activity/valentine_composite" class="composite">情侣合盘解读</a>
    <p class="copyright">
        <b>准了 </b>
        / 星座爱好者都在用的APP
    </p>
</div>

<script>
    document.setTitle = function(t) {
        document.title = t;
        var i = document.createElement('iframe');
        i.src = '/favicon.ico';
        i.style.display = 'none';
        i.onload = function() {
            setTimeout(function(){
                i.remove();
            }, 0)
        };
        document.body.appendChild(i);
    }
    wx.config({
        debug: false,
        appId: '{$signPackage.appId}',
        timestamp: {$signPackage.timestamp},
        nonceStr: '{$signPackage.nonceStr}',
        signature: '{$signPackage.signature}',
        jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
    });
    wx.ready(function(){
        wx.onMenuShareAppMessage({
            title: '{$share_title}',
            desc: '{$share_introduction}',
            link: '{$signPackage.url}',
            imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show',
            type: 'link',
            dataUrl: '',
            success: function () {

            },
            cancel: function () {

            }
        });
        wx.onMenuShareTimeline({
            title: '{$share_title}',
            link: '{$signPackage.url}',
            imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show',
            success: function () {

            },
            cancel: function () {

            }
        });
    });
</script>
{include file="../apps/web/view/public/sensors.html" /}
</body>
</html>
